#ifndef __MOVE_TO__
#define __MOVE_TO__

#include "ActionInterval.h"
#include "T_Node.h"

class MoveTo:public ActionInterval{
protected:
	Gdiplus::PointF m_StartPos;
	Gdiplus::PointF m_EndPos;
	Gdiplus::PointF m_Delta;
public:
	static MoveTo *create(const Gdiplus::PointF &desti,float dur);
	virtual bool init(T_Node *node);
	virtual void startWithTarget(T_Node *node);
	virtual void update(int dt);
	virtual ActionType getActionType(){return ActionType::MoveAction;}
};
	

#endif